package com.jdk.enums;

/**
 * @author jukg
 * @date 2023/11/02 18:28
 * @description
 */
public enum AAenum {
    A(1, "1%s%s"),
    B(2, "2%s"),
    C(3, "%s%s3%s");
    private int code;

    private String name;

    AAenum(int code, String name) {
        this.code = code;
        this.name = name;
    }
    String getContent(String... param){
        return code + String.format(name, param);
    }
    public static void main(String[] args) {
        System.out.println(AAenum.A.getContent("Q","Q"));
        System.out.println(AAenum.B.getContent("W"));
        System.out.println(AAenum.C.getContent("E","E","E"));
    }
}
